<?php
	require("DBops.php");
	session_start();
	$con = connect("localhost", "root", "", "lab");


$office=  $_POST["office"];
$email=  $_POST["email"];
$phone=  $_POST["phone"];
$titleOrDegree = $_POST["titleOrDegree"];
$selfIntro= $_POST["selfIntro"];
$researchArea= $_POST["researchArea"];
$ID=$_GET['id'];

$exec="update personalinfo set office='$office',email='$email',phone='$phone',titleOrDegree = '$titleOrDegree' ,selfIntro='$selfIntro', researchArea='$researchArea' where ID= $ID";

$result=mysql_query($exec);

echo"<script> location.href='Infor.php?id=$ID'</script>";

?>